﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Game.Kernel;
using Game.Utils;

namespace Game.Web.RoomCard
{
    public partial class Success : System.Web.UI.Page
    {
        protected string btn = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                int typeId = GameRequest.GetInt("id", 1);
                if(typeId == 1)
                {
                    btn = "<a href = \"/RoomCard/Buy.aspx\"> 继续购买 </a><a href = \"/RoomCard/Index.aspx\" > 查看记录 </a>";
                    lblAlertInfo.Text = "恭喜您，购买成功！";
                }
                else if(typeId == 2)
                {
                    btn = "<a href = \"/RoomCard/Exch.aspx\"> 继续兑换 </a><a href = \"/RoomCard/ExchRecord.aspx\" > 查看记录 </a>";
                    lblAlertInfo.Text = "恭喜您，兑换成功！";
                }
                else if(typeId == 3)
                {
                    btn = "<a href = \"/RoomCard/BuyByGold.aspx\"> 继续购买 </a><a href = \"/RoomCard/GoldBuyRecord.aspx\" > 查看记录 </a>";
                    lblAlertInfo.Text = "恭喜您，购买成功！";
                }
                else
                {
                    btn = "<a href = \"/RoomCard/BuyByMedal.aspx\"> 继续购买 </a><a href = \"/RoomCard/MedalBuyRecord.aspx\" > 查看记录 </a>";
                    lblAlertInfo.Text = "恭喜您，购买成功！";
                }
            }
        }
    }
}